package com.ubb.dbms.domain.xml;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root (name = "Table")
public class Table {

	@Attribute (name = "tableName", required = true)
	private String tableName;

	@Attribute (name = "rowLenght", required = true)
	private String rowLenght;

	@Element (name = "Structure", required=true)
	private Structure structure;
	
	@Element (name = "primaryKeys", required=true)
	private PrimaryKey primaryKey;
	
	@Element (name = "uniqueKeys", required=false)
	private UniqueKeys uniqueKeys;
	
	@Element (name = "IndexFiles", required=false)
	private IndexFiles indexFiles;

	@Element (name = "foreignKeys", required=false)
	private ForeignKeys foreignKeys;
	
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getRowLenght() {
		return rowLenght;
	}

	public void setRowLenght(String rowLenght) {
		this.rowLenght = rowLenght;
	}

	public Structure getStructure() {
		return structure;
	}

	public void setStructure(Structure structure) {
		this.structure = structure;
	}

	public PrimaryKey getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(PrimaryKey primaryKey) {
		this.primaryKey = primaryKey;
	}

	public UniqueKeys getUniqueKeys() {
		return uniqueKeys;
	}

	public void setUniqueKeys(UniqueKeys uniqueKeys) {
		this.uniqueKeys = uniqueKeys;
	}

	public IndexFiles getIndexFiles() {
		return indexFiles;
	}

	public void setIndexFiles(IndexFiles indexFiles) {
		this.indexFiles = indexFiles;
	}
	
	public ForeignKeys getForeignKeys() {
		return foreignKeys;
	}
	
	public void setForeignKeys(ForeignKeys foreignKeys) {
		this.foreignKeys = foreignKeys;
	}
	
}
